package com.yc.controller;

import com.yc.bean.DinnerTableBean;
import com.yc.model.ResponseResult;
import com.yc.service.TableBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author zwei
 * @create 2024-09-27 15:42
 */
@RestController
@RequestMapping("/table")
public class TableController {
    private static TableBiz tableBiz;
    @Autowired
    public void setTableBiz(TableBiz tableBiz) {
        TableController.tableBiz = tableBiz;
    }
    @GetMapping("/findAllTable")
    public ResponseResult findAllTable(){
        return ResponseResult.ok().setData(tableBiz.findAllTable());
    }
}
